package cn.liuding.pethome.org.controller;

import cn.liuding.pethome.basic.util.DepartmentResult;
import cn.liuding.pethome.org.domain.Employee;
import cn.liuding.pethome.org.service.IEmployeeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class EmployeeController {
    @Resource
    private IEmployeeService employeeService;

    @GetMapping("/emp")
    public List<Employee> queryAll(){
        List<Employee> emps = employeeService.queryAll();
        return emps;
    }
}
